package Multithreading.Exercise011;


import java.util.ArrayList;
import java.util.Collections;

/**
 * ClassName:ThreadDome
 * Package:Multithreading.Exercise011
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/3/7-10:18
 * @Version:v1.0
 */
public class ThreadDome {
    public static void main(String[] args) {
        //创建奖池
        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list,10,5,20,50,100,200,500,800,2,80,300,700);

        //创建线程
        MyThread t1 = new MyThread(list);
        MyThread t2 = new MyThread(list);
        MyThread t3 = new MyThread(list);

        t1.setName("抽奖箱1");
        t2.setName("抽奖箱2");
        t3.setName("抽奖箱3");

        t1.start();
        t2.start();
        t3.start();
    }

}
